import request from '@/utils/request'
export function login(params) {
    return request({
        url: '/login',
        method: 'POST',
        data: params
    }).then(data => {
        return data
    })
}
export function logout(params) {
    return request({
        url: '/logout',
        method: 'POST',
        data: params
    }).then(data => {
        return data
    })
}
export function register(params) {
    return request({
        url: '/user/register',
        method: 'POST',
        data: params
    }).then(data => {
        return data
    })
}